package baidu;

import java.util.Scanner;

public class three {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int m = scan.nextInt();

    }
    /*public int digui(int n,int m,int sum,int i){
        int count = 0;
        if(sum==n){
            count++;
            return i;
        }
        String str = "";
        sum += digui(n,m,sum,i);
        for (int i = 1; i < m; i++) {

            if (i > 3) {
                if (str.charAt(i-1)!=i&&str.charAt(i-2)!=i){
                    sum += i;
                    str+=i;
                }
            }else{
                sum += i;
                str+=i;
            }
            if(sum==n){
                count++;
            }
        }
    }*/
}
